<template>
	<view>
		<Header :isBack="true">
			<block slot="content">{{title}}</block>
		</Header>
		<!-- 快捷方式 -->
		<view class="cate-section">
			<view class="cate-section-header">
				<view class="cate-section-header-left">
					<image class="cate-section-header-left-img" src="@/static/images/zuogang.png"></image>
					<text class="cate-section-header-left-text">自助服务</text>
				</view>
			</view>
			<view class="cate-section-content">
				<view class="cate-item" @tap="findRegist">
					<image class="cate-item-img" src="@/static/images/daidaogang.png"></image>
					<text class="cate-item-text">注册流程</text>
				</view>
				<view class="cate-item" @tap="findLogin">
					<image class="cate-item-img" src="@/static/images/yifabu.png"></image>
					<text class="cate-item-text">登录流程</text>
				</view>
				<view class="cate-item" @tap="findPsd">
					<image class="cate-item-img" src="@/static/images/jinxingzhong.png"></image>
					<text class="cate-item-text">忘记密码</text>
				</view>
				<view class="cate-item" @tap="gopersonauth">
					<image class="cate-item-img" src="@/static/images/yiwancheng.png"></image>
					<text class="cate-item-text">认证流程（个人）</text>
				</view>
				<view class="cate-item" @tap="gocompanyauth">
					<image class="cate-item-img" src="@/static/images/yiwancheng.png"></image>
					<text class="cate-item-text">认证流程（企业）</text>
				</view>
				<view class="cate-item" @tap="findProject">
					<image class="cate-item-img" src="@/static/images/yijiesuan.png"></image>
					<text class="cate-item-text">找活流程</text>
				</view>
				<view class="cate-item" @tap="publish">
					<image class="cate-item-img" src="@/static/images/yiwancheng.png"></image>
					<text class="cate-item-text">发布流程</text>
				</view>
				<view class="cate-item" @tap="gowithdraw">
					<image class="cate-item-img" src="@/static/images/yijiesuan.png"></image>
					<text class="cate-item-text">提现流程</text>
				</view>
				<view class="" style="clear: both;"></view>
			</view>
		</view>

		<view class="list">
			<view class="list-header">
				<image class="list-header-img" src="@/static/images/zuogang.png"></image>
				<text class="list-header-text">热门问题</text>
			</view>
		</view>
	</view>
</template>

<script>
	import BottomTabbar from '@/components/bottom-tabbar/bottom-tabbar.vue';
	import robbyImageUpload from '@/components/robby-image-upload/robby-image-upload.vue';
	import {
		mapState
	} from 'vuex';
	export default {

		data() {
			return {
				title: '帮助中心'
			};
		},

		computed: {

		},
		components: {

		},
		//下拉刷新
		onPullDownRefresh() {
			//判断是否登录
			let result = this.$api.isLogin();
			if (result === false) {
				return false;
			}
			this.loadData();
			// 停止下拉刷新
			setTimeout(function() {
				uni.stopPullDownRefresh()
			}, 500)

		},
		onLoad() {

		},
		methods: {
			async findRegist() {
				uni.navigateTo({
					url: '/pages6/pages/docs/regist'
				})
			},

			async findLogin() {
				uni.navigateTo({
					url: '/pages6/pages/docs/login'
				})
			},

			async findPsd() {
				uni.navigateTo({
					url: '/pages6/pages/docs/forgetPsd'
				})
			},

			async gopersonauth() {
				uni.navigateTo({
					url: '/pages6/pages/docs/person-auth'
				})
			},

			async gocompanyauth() {
				uni.navigateTo({
					url: '/pages6/pages/docs/company-auth'
				})
			},

			async findProject() {
				uni.navigateTo({
					url: '/pages6/pages/docs/project'
				})
			},

			async publish() {
				uni.navigateTo({
					url: '/pages6/pages/docs/publish-project'
				})
			},

			async gowithdraw() {
				uni.navigateTo({
					url: '/pages6/pages/docs/withdraw'
				})
			}
		},
	}
</script>

<style>
	page {
		background-color: #f7f7f7;
		font-size: $font-base;
	}
</style>

<style lang="scss" scoped>
	/* 快捷方式 */
	.cate-section {
		// #ifdef APP-PLUS
		padding-top: 160rpx;
		// #endif

		// #ifdef H5
		padding-top: 110rpx;
		// #endif
		
		// #ifdef MP-WEIXIN
		padding-top: 160rpx;
		// #endif
		background: #fff;

		.cate-section-header {
			height: 82rpx;
			padding: 0 32rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;

			.cate-section-header-left {
				display: flex;
				align-items: center;
			}

			.cate-section-header-left-img {
				width: 6rpx;
				height: 27rpx;
				margin-right: 16rpx;
			}

			.cate-section-header-left-text {
				/* font-weight: bold; */
				font-size: $font-base;
			}

			.cate-section-header-right-text {
				font-size: $font-base;
				color: $font-color-dark;
				margin-right: 18rpx;
			}

			.cate-section-header-right-img {
				width: 9rpx;
				height: 18rpx;
			}
		}

		.cate-section-content {

			flex-wrap: wrap;
			border-top: 1px solid #ececec;
			border-bottom: 1px solid #ececec;

			.cate-item {
				height: 166rpx;
				width: 33.3%;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				font-size: $font-sm;
				color: $font-color-dark;
				border-right: 1px solid #ececec;
				border-bottom: 1px solid #ececec;
				background-color: #fff;
				float: left;

				.cate-item-img {
					width: 48upx;
					height: 42rpx;
					margin-bottom: 14rpx;
				}

				.cate-item-text {
					font-size: $font-base;
				}
			}
		}
	}

	.list {
		// height: 780rpx;
		margin-top: 18rpx;
		background-color: #fff;
		padding-bottom: 120rpx;

		.list-header {
			height: 82rpx;
			padding: 0 32rpx;
			display: flex;
			align-items: center;
			border-bottom: 1px solid #ececec;

			.list-header-img {
				width: 6rpx;
				height: 27rpx;
				margin-right: 16rpx;
			}

			.list-header-text {
				/* font-weight: bold; */
				font-size: $font-base;
			}
		}

		.list-item {
			display: flex;
			width: 100%;
			justify-content: space-between;

			.list-item-left,
			.list-item-right {
				height: 140rpx;
				padding: 28rpx 0 28rpx 52rpx;
				border-right: 1px solid #ececec;
				border-bottom: 1px solid #ececec;
				display: flex;
				align-items: center;
				width: 50%;

			}

			.list-item-img {
				height: 80rpx;
				width: 80rpx;
				margin-right: 24rpx;
			}

			.list-item-text {
				display: flex;
				flex-direction: column;
				align-items: left;
				// padding: 6rpx 0;

				.list-item-text-title {
					font-size: $font-base;
					// font-weight: bold;
				}

				// .list-item-text-introduct {
				// 	color: #d0d0d0;
				// 	font-size: 24rpx;
				// }
			}
		}
	}

	.mark1 {
		z-index: 100;
		position: fixed;
		height: 100%;
		width: 100%;
		top: 0rpx;
		bottom: 0rpx;
		background: rgba(0, 0, 0, 0.5);
		box-shadow: 2px -3px 100px -5px #FFFFFF;

		.banks-list {
			position: fixed;
			height: 340rpx;
			bottom: 0rpx;
			background-color: #fff;
			width: 100%;

			.banks-list-title {
				height: 88rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				border-bottom: 1px solid #ebebeb;
				position: relative;
			}

			.banks-list1 {
				padding-top: 80rpx;
				height: 230rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;

				margin: 0 66rpx;

				.banks-list1-center {
					display: flex;
					flex-direction: column;
					align-items: left;

					.text1 {
						/* font-weight: bold; */
						line-height: 50rpx;
					}

					.text2 {
						color: #959595;
						font-size: 26rpx;
					}
				}
			}

			.banks-list-button {
				padding-top: 20rpx;
				display: flex;
				justify-content: center;
			}
		}
	}

	.mark2 {
		z-index: 100;
		position: fixed;
		height: 100%;
		width: 100%;
		top: 0rpx;
		bottom: 0rpx;
		background: rgba(0, 0, 0, 0.5);
		box-shadow: 2px -3px 100px -5px #FFFFFF;
		font-size: $font-base;

		.banks-list {
			position: absolute;
			height: 496rpx;
			bottom: 0rpx;
			background-color: #fff;
			width: 100%;

			.banks-list-title {
				height: 88rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				border-bottom: 1px solid #ebebeb;
				position: relative;
			}

			.banks-list-content {
				.banks-list1 {
					height: 230rpx;
					display: flex;
					justify-content: space-between;
					align-items: center;

					margin: 0 66rpx;

					.banks-list1-item {
						width: 33.3%;
						display: flex;
						flex-direction: column;
						align-items: center;
					}
				}

				.banks-list2 {
					position: relative;
					height: 176rpx;
					border-top: 1px solid #f3f3f6;

					.banks-list2-cancle {
						position: absolute;
						margin: auto;
						top: 0;
						left: 0;
						bottom: 0;
						right: 0;

						width: 80%;
						background-color: #f2451a;
						color: #fff;
						height: 82rpx;
						border-radius: 82rpx;
						display: flex;
						align-items: center;
						justify-content: center;
					}
				}

			}

			.banks-list-button {
				padding-top: 20rpx;
				display: flex;
				justify-content: center;
			}

			.images {
				width: 102rpx;
				height: 102rpx;
			}

			.texts {
				margin-top: 20rpx;
				color: #737373
			}

		}
	}
</style>
